function JSWFObject(id){
	this.id = id;
	this._oJsSwfObject = this.initialize();
	var sInitJsSwf = this.id + " = this._oJsSwfObject;"
	eval(sInitJsSwf);
	return this._oJsSwfObject;
}
JSWFObject.prototype.initialize = function(){
	var sTagName = (navigator.appName.indexOf ("Microsoft")!=-1)?"object":"embed";
	var aObj = document.getElementsByTagName(sTagName);
	for(i in aObj){
		if(aObj[i].id == this.id || aObj[i].name == this.id)
			return aObj[i];
	}
	throw new Error("swf file with that name cannot be found.");
}
